include $(LITEOSTOPDIR)/config.mk
include $(LITEOSTOPDIR)/components/utility/harfbuzz/harfbuzz.mk

MODULE_NAME := $(notdir $(CURDIR))

LOCAL_SRCS = \
    $(wildcard $(HARFBUZZ_VERSION)/src/*.cc) \
    $(wildcard $(HARFBUZZ_VERSION)/src/hb-ucdn/*.c)

LOCAL_INCLUDE := \
    -I $(LITEOSTOPDIR)/components/utility/harfbuzz/$(HARFBUZZ_VERSION)/src/hb-ucdn \
    -I $(LITEOSTOPDIR)/components/utility/freetype/$(FREETYPE_VERSION)/include \
    -I $(LITEOSTOPDIR)/components/utility/harfbuzz/$(HARFBUZZ_VERSION)/src/ \
    -I $(LITEOSTOPDIR)/components/utility/harfbuzz/$(HARFBUZZ_VERSION)

LOCAL_EXT_FLAG := -w -fstack-protector-strong

LOCAL_CPPDEFS := -DDHAVE_FREETYPE  -DHAVE_PTHREAD -DHAVE_DLFCN_H \
    -DHAVE_FALLBACK -DHAVE_INTTYPES_H -DHAVE_ISATTY -DHAVE_MEMORY_H -DHAVE_INTTYPES_H \
    -DHAVE_FT_FACE_GETCHARVARIANTINDEX -DHAVE_INTEL_ATOMIC_PRIMITIVES -DHAVE_ISATTY \
    -DHAVE_OT -DHAVE_PTHREAD_PRIO_INHERIT -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_UCDN \
    -DHAVE_STRINGS_H -DHAVE_STRING_H -DHAVE_SYS_STAT_H -DHAVE_SYS_MMAN_H -DHAVE_SYSCONF \
    -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DSTDC_HEADERS -Wno-error -DHB_NO_MT

LOCAL_CPPFLAGS := $(LOCAL_CPPDEFS) $(LOCAL_INCLUDE) $(LOCAL_EXT_FLAG)

include $(MODULE)

